/*
 *             Copyright (C) 2024 Steve Jrong
 *
 * 	   GitHub Homepage: https://www.github.com/SteveJrong
 *      Gitee Homepage: https://gitee.com/stevejrong1024
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *        https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.stevejrong.waiter.rp.dbsdk.model;

import jakarta.persistence.*;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 数据库对象PO - 商家用户后端权限
 *
 * @author Steve Jrong
 * @since 1.0
 */
@Data
@Entity
@Table(name = "t_merchant_user_backend_perm")
public class MerchantUserPermissionBackendPermPO {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Long id; // 表主键ID、业务ID

    @Column
    private String name; // 商家用户的后端权限名称

    @Column
    private String description; // 商家用户的后端权限描述

    @Column
    private String permUrl; // 商家用户的后端权限地址后缀

    @Column
    private String permCode; // 商家用户的后端权限地址后缀

    @Column
    private Integer type; // 商家用户的后端权限类型

    @Column
    private Integer status; // 商家用户的权限组状态

    @Column
    private LocalDateTime createAt; // 创建时间

    @Column
    public LocalDateTime updateAt; // 更新时间
}